import java.util.ArrayList;

public class ArrayList_03 {

    public static void main(String[] args) {
        ArrayList<Student_01> arrayList = new ArrayList<>();
        Student_01 student_01 = new Student_01("数字君",18);
        Student_01 student_02 = new Student_01("shuzijun",22);
        Student_01 student_03 = new Student_01("shuzi",24);
        arrayList.add(student_01);
        arrayList.add(student_02);
        arrayList.add(student_03);
        for (int i=0;i<arrayList.size();i++){
            Student_01 s = arrayList.get(i);
            System.out.println(s.getName()+","+s.getAge());
        }

    }
}
